From c6a9cc8d356c1b6a6089fd5f27de16bf9a2e5c04 Mon Sep 17 00:00:00 2001 From: Jauhien Piatlicki Date: Thu, 14 Aug 2014 20:07:05 +0200 Subject: [PATCH] Fix code to be compilable with latest rustc: - splitn arguments order Closes #371 --- src/cargo/core/source.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/source.rs b/src/cargo/core/source.rs index dfa80d06d..ae415e130 100644 --- a/src/cargo/core/source.rs +++ b/src/cargo/core/source.rs @@ -156,7 +156,7 @@ impl SourceId { } pub fn from_url(string: String) -> SourceId { - let mut parts = string.as_slice().splitn('+', 1); + let mut parts = string.as_slice().splitn(1, '+'); let kind = parts.next().unwrap(); let url = parts.next().unwrap(); -- 2.30.2